-- GENERATED SPELL FOR [Lieutenant Doren] --


function spell0_469(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_469', 2330, 1)
end

function spell1_469(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_469', 2284, 1)
end

function spell2_469(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_469', 6268, 1)
end

function spell3_469(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_469', 6253, 1)
end

function Sorts_469(pUnit, Event)
local choix_sorts_469 = math.random(0, 3)
if choix_sorts_469 == 0 then
pUnit:RegisterEvent('spell0_469', 1, 1)
end
if choix_sorts_469 == 1 then
pUnit:RegisterEvent('spell1_469', 1, 1)
end
if choix_sorts_469 == 2 then
pUnit:RegisterEvent('spell2_469', 1, 1)
end
if choix_sorts_469 == 3 then
pUnit:RegisterEvent('spell3_469', 1, 1)
end
end

function mob469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_469', math.random(1500, 3000), 1)
end

function mob469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(469, 1, 'mob469_Action')
RegisterUnitEvent(469, 2, 'mob469_Leave')
RegisterUnitEvent(469, 3, 'mob469_Kill')
RegisterUnitEvent(469, 4, 'mob469_Die')
